<?php
    /*
     Name: readpress四卡片
    */
?>
<?php get_header();?>
<!-- 页面布局开始 -->
		<div class="layui-content">
			<div class="layui-container">
				<div class="layui-row main">
					<div class="layui-col-md12 layui-col-lg12 col12-img">
						<div class="list-box-imgkp">
<?php $posts = query_posts($query_string . '&orderby=date&showposts='._read('rp-category-piece').''); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>   
						<div class="list-cardsimg layui-anim layui-anim-downbit">
							<div class="item-inner">
								<article>
								     <!--style="background-image: url('?php echo post_thumbnail_src(); ?>')"-->
<picture class="featured-image"><a href="<?php the_permalink();?>">
<?php if(_read('rp-page-tesetu-sw')=='tesetu1'){?>
<img src="<?php echo get_template_directory_uri(); ?>/images/read/dna.svg" data-src="<?php echo post_thumbnail_src(); ?>" title="<?php the_title(); ?>" class="lazyload">
<?php }else{?>
<img src="<?php echo get_template_directory_uri(); ?>/images/read/dna.svg" data-src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=300&h=240&zc=1" title="<?php the_title(); ?>" class="lazyload">
<?php }?>
</a></picture>
<header class="tile-head"><h3 class="tile-headline"><?php the_title(); ?></h3>
<p class="l-h-2s picture-content"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></p>
<div class="tile-date">
<time class="" datetime="><?php the_time('Y/n/j'); ?>" itemprop="datePublished"><?php the_time('Y/n/j'); ?></time>
<div class=""><?php post_views('',' 浏览'); ?></div></div>
</header>
								</article>
							</div>
						</div>
  <?php endwhile; else: ?>
           <div class="read_ssnrts"><h2 style=" text-align: center; margin: 0 auto; padding: 60px;">暂无文章哦！</h2></div>
                <?php endif; ?>
						</div>
					</div>
				</div>
			</div>
			<div class="pagination" id="pagenavi">
            <p><?php lingfeng_pagenavi();?></p>
           </div>
		</div>
<!-- 页面布局结束 -->
<!--<style>.footer-box{display:none;}</style>-->
<?php get_footer();?>